PREFIX ?= ../data
APP_NAME = 4g

all: install
	gcc -g *.c -o ${APP_NAME} -lwiringPi -lpthread -lmosquitto -lsqlite3
	#gcc -g *.c -o ${APP_NAME} -Wall -Werror

install:
	mkdir -p ${PREFIX}

clean:
	rm 4g